package com.csun.dsms.service;

import com.csun.dsms.comment.core.support.IService;
import com.csun.dsms.model.domain.DsmsLog;
import com.csun.dsms.model.domain.DsmsUser;
import com.csun.dsms.model.dto.log.LogQueryDto;

import java.util.List;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-08-31 14:26
 * @description: 系统日志接口
 */
public interface DsmsLogService extends IService<DsmsLog> {

    /**
     * 存储日志
     *
     * @param dsmsLog   the dsms log
     * @param user      the operator user
     *
     * @return  the int.
     */
    Integer save(DsmsLog dsmsLog, DsmsUser user);

    /**
     * 查询日志列表 - 分页.
     *
     * @param logQueryDto   the log query dto
     *
     * @return  the dsms log list.
     */
    List<DsmsLog> queryListWithPage(LogQueryDto logQueryDto);
}
